package com.example.everying.model.entity.statistics;/*
 * 项目名称: everything
 * 文件名: SystemActivityStats
 * 作者: 张泽阳
 * 日期: 2025/7/7
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class SystemActivityStats {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("统计日期")
    private LocalDate statDate;

    @ApiModelProperty("小时时段(0-23),日统计为空")
    private Integer hourSlot;

    @ApiModelProperty("活跃用户数")
    private Integer activeUsers;

    @ApiModelProperty("新增用户数")
    private Integer newUsers;

    @ApiModelProperty("平均使用时长（秒）")
    private Integer avgDuration;

    @ApiModelProperty("统计类型（1-日统计，2-小时统计）")
    private Integer statType;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;


}
